import { axios } from '@/utils/request'

export default {

  catModify (data) {
    return axios({
      url: '/pt/pt-activity-goods-cat/save',
      data,
      method: "post"
    })
  },
  // 获取有分页
  catGetList (data) {
    return axios({
      url: '/pt/pt-activity-goods-cat/list',
      params: data,
      method: "get"
    })
  },
  // 获取无分页
  catGetListNopage (data) {
    return axios({
      url: '/pt/pt-activity/get-pt-goods-cat',
      params: data,
      method: "get"
    })
  },
  setStatus (data) {
    return axios({
      url: '/pt/pt-activity-goods-cat/set-status',
      params: data,
      method: "get"
    })
  },


  activityGetList (data) {
    return axios({
      url: '/pt/pt-activity/list',
      params: data,
      method: "get"
    })
  },
  activitySetStatus (data) {
    return axios({
      url: '/pt/pt-activity/set-status',
      params: data,
      method: "get"
    })
  },
  activityGetInfo (data) {
    return axios({
      url: '/pt/pt-activity/get-info',
      params: data,
      method: "post"
    })
  },
  activitySave (data) {
    return axios({
      url: '/pt/pt-activity/save',
      data: data,
      method: "post"
    })
  },

  bannerList (data) {
    return axios({
      url: '/pt/pt-activity-banner/list',
      method: 'get',
      params: data
    })
  },
  bannerSave (data) {
    return axios({
      url: '/pt/pt-activity-banner/save',
      data,
      method: 'post'
    })
  },
  ptSaveAritcle (data) {
    return axios({
      url: '/pt/pt-activity/save-aritcle',
      data,
      method: 'post'
    })
  },
  ptGetArticle (data) {
    return axios({
      url: '/pt/pt-activity/get-article',
      params: data,
      method: 'get'
    })
  },
  bannerSetStatus (data) {
    return axios({
      url: '/pt/pt-activity-banner/set-status',
      params: data,
      method: 'get'
    })
  },
  ptOrderList (data) {
    return axios({
      url: '/pt/pt-activity-order/list',
      params: data,
      method: 'get'
    })
  },
  ptGetPtInfo (data) {
    return axios({
      url: '/pt/pt-activity-order/get-pt-info',
      params: data,
      method: 'get'
    })
  },
  loserHandle (data) {
    return axios({
      url: '/pt/pt-activity-order/loser-handle',
      params: data,
      method: 'get'
    })
  },
}
